FROM anapsix/alpine-java:8_server-jre_unlimited

RUN mkdir -p /app
WORKDIR /app
COPY ./target/xssq-1.0.0.jar /app/app.jar
COPY ./src/main/resources/pay/alipay/alipay_root_cert_sn.crt   /app/pay/alipay/alipay_root_cert_sn.crt
COPY ./src/main/resources/pay/alipay/alipay_public_key.crt   /app/pay/alipay/alipay_public_key.crt
COPY ./src/main/resources/pay/alipay/app_cert_sn.crt     /app/pay/alipay/app_cert_sn.crt


COPY ./src/main/resources/pay/weipay/apiclient_cert.pem  /app/pay/weipay/apiclient_cert.pem
COPY ./src/main/resources/pay/weipay/apiclient_key.pem   /app/pay/weipay/apiclient_key.pem

ENV TZ=Asia/Shanghai JAVA_OPTS="-Xms1024m -Xmx1024m"
EXPOSE 9000

CMD java ${JAVA_OPTS} -Dprofiles.active=dev -Djava.security.egd=file:/dev/./urandom -jar app.jar